import service from '../plugins/fetch';

const api = '/api'

// 博客列表
export function postFindBlogListPage(params){
    return service({
        method: 'POST',
        data: params,
        url:  api + '/blog/findListPage',
    }).then(res => res.data)
}

// 博客详情
export function postBlogDetail(params){
    return service({
        method: 'POST',
        data: params,
        url:  api + '/blog/blogDetail',
    }).then(res => res.data)
}

// 阅读量增加
export function postIncreaseViewcount(params){
    return service({
        method: 'POST',
        data: params,
        url:  api + '/blog/increaseViewcount',
    }).then(res => res.data)
}

